<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');
    $router->resource('/city',CityController::class);
    $router->resource('/industry',WorkshopIndustryController::class);
    $router->resource('/PropertyType',WorkshopPropertyTypeController::class);
    $router->resource('/workshop',WorkshopController::class);
    $router->resource('/workshopZS',WorkshopZSController::class);
    $router->resource('/park',ParkController::class);//园区管理
    $router->resource('/parkArea',ParkAreaController::class);//园区面积管理
    $router->resource('/parkFormat',ParkFormatController::class);
    $router->resource('/parkType',ParkTypeController::class);
    $router->resource('/area',AreaController::class);
    $router->resource('/about',AboutController::class);
    $router->resource('/news',NewsController::class);
    $router->resource('/newsZs',NewsZsController::class);
    $router->resource('/parkBaner',ParkBanerController::class);
    $router->resource('/parkChannel',ParkChannelController::class);
    $router->resource('/website',WebsiteController::class);
    $router->resource('/land',LandController::class);
    $router->resource('/landUse',LandUseController::class);
    $router->resource('/areaLand',AreaLandController::class);
    $router->resource('/standard',StandardController::class);
    $router->resource('/building',BuildingController::class);
    $router->resource('/buildMatch',BuildMatchController::class);
    $router->resource('/areaBuild',AreaBuildController::class);
    $router->resource('/browseRecords',BrowseRecordsController::class);
    $router->resource('/tc58detail',Tc58DetailController::class);
    $router->resource('/releaseBail',ReleaseBailController::class);
    $router->resource('/releaseNeed',ReleaseNeedController::class);
    $router->any('/api/area','ParkController@area');
    $router->any('/api/area1','ParkController@area1');
    $router->any('/api/type','BrowseRecordsController@type');

    //用户列表
    $router->resource('/user',UserController::class);
    //经纪人等级
    $router->resource('/brokerLevel',BrokerTypeController::class);
    //经纪人
    $router->resource('/broker',BrokerController::class);
    //手机黑名单
    $router->resource('/brokerBlock',BrokerBlockMobileController::class);
    //通话记录
    $router->resource('/brokerCall',BrokerCallController::class);
    //手机列表
    $router->resource('/brokerMobile',BrokerMobileController::class);
    //联系
    $router->resource('/AlishiForm',AlishiFormController::class);
    //推广项目列表
    $router->resource('/brokerProject',Share\B::class);
    //推广关系、状态列表
    $router->resource('/brokerCustomer',Share\BrokerCustomerController::class);
    //推广奖励记录
    $router->resource('/brokerRewardRecord',Share\BrokerRewardRecordController::class);
});
